﻿@{
    Layout = "../_QuickLayoutPage.cshtml";
}

<div class="login-sign">找回密码</div>
<div id="findBox">
    <form method="post" id="loginForm" data-validate-params="tipsStyle:1" autocomplete="off">
        <div class="validate-all-tips-box"></div>
        <div class="form-group">
            <div class="controls ">
                <input type="text" id="account" name="account" class="form-control" maxlength="30" placeholder="用户名/绑定邮箱/绑定手机" data-validate="ignoreHidden:true,dataType:'*',nullMsg:'请填写账号'">
                <span class="help-block">请填写要找回的帐号、或账号绑定的邮箱或手机</span>
            </div>
        </div>

        @if (ViewBag.VerificationCode == "1")
        {
            <div class="form-group">
                <div class="controls ">
                    <div class="input-group">
                        <input type="text" id="_VerificationCode" name="_VerificationCode" class="form-control" maxlength="4" placeholder="输入右侧的验证码" data-validate="dataType:'*',minLength:4,minLengthErrorMsg:'验证码最少4个字符',nullMsg:'请填写验证码',checkUrl:'/E/VerificationCode/Validate',checkError:'验证码填写错误'">
                        <span class="input-group-btn">
                            <a class="btn btn-default btn-verificationCodeImg"><img id="verificationCodeImg" src="/E/VerificationCode/?width=100&height=39" class="ui-verificationCodeImage" /></a>
                        </span>
                    </div>
                    <span class="help-block" id="_ValidateTips__VerificationCode"></span>
                </div>
            </div>

        }
        <div class="form-group">
            <div class="controls controls-submit">
                @Html.AntiForgeryToken()
                <button type="button" class="btn btn-primary btn-lg col-xs-12 col-md-12 ui-pagePost" data-custom-params="url:'@Url.ActionUrl("Index")',callBack:'Success',successMsg:''">下一步</button>
            </div>
        </div>

        <div class="row">
            <div class="col-md-6 col-xs-6">没有账户？<a href="@Url.ActionUrl("Quick","Reg")" class="text-primary">去注册</a></div>
        </div>
    </form>
</div>
    <script type="text/javascript">
    var open = @ViewBag.Open;
        var $findBox = $("#findBox");
    if (open == 0)
    {
        $findBox.html("对不起，找回密码功能未开放！")
    }
    var $verificationCode = $("#verificationCode");
   $verificationCode.val("");

   function winClose()
        {
            CloseDialog();
        }
  $("#closeBtn").on("click", function () { winClose(); });


  $(function () { AutoDialog(); })

   function Success(result)
   {
       location.href = "@Url.ActionUrl("ConfirmQuick")";
    }
    </script>
